package com.zhonku.antifack.server.entity;

/**
 * SaleRecord entity. @author MyEclipse Persistence Tools
 */

public class SaleRecord implements java.io.Serializable {

	// Fields

	private String id;
	private Goods goods;
	private User user;
	private String buyerId;
	private String saleTime;
	private String saleAddress;

	// Constructors

	/** default constructor */
	public SaleRecord() {
	}

	/** full constructor */
	public SaleRecord(Goods goods, User user, String buyerId, String saleTime,
			String saleAddress) {
		this.goods = goods;
		this.user = user;
		this.buyerId = buyerId;
		this.saleTime = saleTime;
		this.saleAddress = saleAddress;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getBuyerId() {
		return this.buyerId;
	}

	public void setBuyerId(String buyerId) {
		this.buyerId = buyerId;
	}

	public String getSaleTime() {
		return this.saleTime;
	}

	public void setSaleTime(String saleTime) {
		this.saleTime = saleTime;
	}

	public String getSaleAddress() {
		return this.saleAddress;
	}

	public void setSaleAddress(String saleAddress) {
		this.saleAddress = saleAddress;
	}

}